using System;
using System.Collections.Generic;
using System.Text;

using NUnit.Framework;
using WCSFContrib.Extensions.Utility;

namespace WCSFContrib.Extensions.Tests.Utility
{
	[TestFixture]
	public class DataEventArgsTests
	{
		[Test]
		public void NullDataAllowed()
		{
			DataEventArgs<string> args = new DataEventArgs<string>(null);
			Assert.IsNull(args.Data);
		}

		[Test]
		public void GetDataTypeFromNullData()
		{
			DataEventArgs<string> args = new DataEventArgs<string>(null);
			Assert.AreEqual(typeof(string), args.GetDataType());
		}
	}
}
